document.getElementById('searchForm').addEventListener('submit', function(event) {
    const searchInput = document.getElementById('searchInput');
    

    if (!searchInput.value.trim()) {
        event.preventDefault(); // ��ֹ��Ĭ���ύ
        window.location.href = '../search/search.html'; // ��ת��search.html
    }
});